package com.jinunn.system.model.query;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.jinunn.system.common.base.BasePageQuery;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;

import java.time.LocalDateTime;

/**
 * 角色分页查询对象
 *
 * @author Jindun
 * @version RolePageQuery.java, v0.1 2024年 07⽉ 12⽇  下午5:10 Jindun Exp $
 */
@Getter
@Setter
@Schema(description = "角色分页查询对象")
public class RolePageQuery extends BasePageQuery {

    @Schema(description = "关键字(角色名称/角色编码)")
    private String keywords;

    @Schema(description = "开始日期")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private LocalDateTime startDate;

    @Schema(description = "结束日期")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private LocalDateTime endDate;
}
